
include Bzflag

name = "Steven Mertens"

class Proto < Plugin

	@@countj = 0
	@@countp = 0

	def player_join(event_data)

		@@countj += 1
		puts "count => #{@@countj}"
		puts "playerID => #{event_data.playerID}"
		puts "team => #{event_data.team}"
		puts "callsign => #{event_data.callsign}"
		puts "email => #{event_data.email}"
		puts "verified? => #{event_data.verified?}"
		puts "globalUser => #{event_data.globalUser}"
		puts "ipAddress => #{event_data.ipAddress}"
		puts "reason => #{event_data.reason}"
		puts "time => #{event_data.time}"
	end

	def player_part(event_data)

		@@countp += 1
		puts "countp => #{@@count}"
		puts "playerID => #{event_data.playerID}"
		puts "team => #{event_data.team}"
		puts "callsign => #{event_data.callsign}"
		puts "email => #{event_data.email}"
		puts "verified? => #{event_data.verified?}"
		puts "globalUser => #{event_data.globalUser}"
		puts "ipAddress => #{event_data.ipAddress}"
		puts "reason => #{event_data.reason}"
		puts "time => #{event_data.time}"
	end

end

p = Proto.new
p.register
